<template>
  <!-- vue2的templete模板当中必须有一对根标签，在vue3当中有没有根标签无所谓 -->
  <h1>第一次使用vue3写组件</h1>
  <div>我勒个去</div>
  <test-vue-2></test-vue-2>
  <set-up></set-up>
  <parent-vue></parent-vue>
</template>

<script lang="ts">
// defineComponent 函数 作用就是定义一个组件 在内部传入对象，配置对象
import { defineComponent } from "vue";
import ParentVue from "./components/ParentVue.vue";
import SetUp from "./components/SetUp.vue";
import TestVue2 from "./components/TestVue2.vue";

export default defineComponent({
  name: "App",
  components: { TestVue2, SetUp, ParentVue },
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
